package com.liaowei.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liaowei.model.domain.UserPostHistory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LindaMan
 * @description 针对表【wy_user_post_history(用户浏览帖子历史表)】的数据库操作Mapper
 * @createDate 2023-05-01 17:19:40
 * @Entity com.liaowei.user.model.domain.UserPostHistory
 */
public interface UserPostHistoryMapper extends BaseMapper<UserPostHistory> {

    //根据用户id分页查询浏览的文章id列表
    List<Long> selectPostIdsByUserId(@Param("userId") Long userId,
                                     @Param("pageNum") int pageNum,
                                     @Param("pageSize") int pageSize);
}




